package Lesson17Homework;

public class Student extends Person 
 {
	double score;
	
	Student(String name, int age, boolean isMale, double score)
	{
		super(name, age, isMale);
		if(score >= 2 && score <= 6)
		{
		this.score = score;
		}
	}
	
	@Override
	void showInfo()
	{
		System.out.println(" ==== Student Info ==== ");
		System.out.println("Name: " + this.name);
		System.out.println("Age: " + this.age);
		System.out.println("Is male!? " + this.isMale);
		System.out.println("Sore: " + this.score);
	}
	
	

 }
